package com.jt.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Amos
 * @date 2021/9/26
 */

@RestController
@PropertySource(value="classpath:/msg.properties",encoding="utf-8")
public class HelloController {
    @Value("${pro.msg}")
    private String msg;

    @RequestMapping("hello")
    public String hello() {
        return msg;
    }
}
